home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
utility
/
603
/
emacs
/
cmd
/
mail
< prev
next >
Wrap
Text File
|
1992-03-05
|
1KB
|
53 lines
store-procedure dontsend
set %mailtmp $discmd
set $discmd FALSE
!force find-screen "MAIL"
select-buffer "[Mail]"
!force unbind-key M-S
macro-to-key mail M-S
!force unbind-key ^X^G
unmark-buffer
!force select-buffer %mailbuf
!force find-screen %mailscreen
!force delete-screen "MAIL"
!force delete-buffer "[Mail]"
!force delete-buffer "[send]"
!force delete-buffer "[dontsend]"
!force %mailcol set-fill-column
set $discmd %mailtmp
!endm
store-procedure send
set %mailtmp $discmd
set $discmd FALSE
!force find-screen "MAIL"
select-buffer "[Mail]"
beginning-of-file
1 replace-string "===========" ""
write-file &cat &env TMPDIR "\em_mail"
execute-program &cat &cat "c:\sys\sendmail.ttp -rf " &env TMPDIR "\em_mail"
set $discmd %mailtmp
execute-procedure dontsend
!endm
set %mailtmp $discmd
set $discmd FALSE
set %mailbuf $cbufname
!force set %mailscreen $scrname
!force find-screen "MAIL"
select-buffer "[Mail]"
unmark-buffer
!force read-file g:\gnu\me\mail.src
change-file-name &cat &env TMPDIR "\em_mail"
add-mode WRAP
set %mailcol $fillcol
79 set-fill-column
beginning-of-file
end-of-line
!force unbind-key M-S
macro-to-key send M-S
macro-to-key dontsend ^X^G
set $discmd %mailtmp
write-message "Edit message. Press M-S to send, ^X^G to abort"